<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<title>信息</title>
<%@include file="/skins/jsp/loadCss.jsp"%>
<style type="text/css">
body{
overflow: hidden;
}
.ch-header {
	height: 38px;
	padding: 2px 2px;
	background: #3E52A1;
	margin: 5px auto;
}
.ch-fixed-sidebar {
	float: left;
	padding-left:10px;
	width:290px; 
}	
.ch-right.ch-elastic-content{
	margin:0px 0px 0px 290px; /* same as width, plus gutter */
}
.ch-elastic-content .ch-inner{ /* inner element must have this class */
	margin:0px 300px 0px 0px; 
} 
.ch-box {
	border: 1px solid #ccc;
	padding: 8px;
}
</style>
</head>
<body>
	<%@include file="/skins/jsp/loadJquery.jsp"%>
	<div class="ch-header">
		<div class="ch-fixed-sidebar">
			<h1 style="color: white;font-weight: bold;">简化管理系统</h1>
		</div>
		<div class="ch-right">
			<div class="ch-elastic-content ch-right">
				<div class="ch-box">
					<s:iterator value="menuList">
						<i class="ch-icon-th"></i><a href="<%=request.getContextPath()%><s:property value="menuFucUrl"/>" target="content-frame"><s:property value="menuName"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
					</s:iterator>
					<div style="float: right;">
							<i class="ch-icon-user"></i><s:property value="userInfo.userName"/>&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="./CPW.jsp" class="cpassword" target="content-frame"><i style="cursor: pointer;" class="ch-icon-key"></i></a>&nbsp;&nbsp;
							<s:a action="logout" namespace="/" cssClass="clogout"><i style="cursor: pointer;" class="ch-icon-remove-sign"></i></s:a>
					</div>
				</div>
			</div>
		</div>
		
	</div>

	<div class="ch-content" style="border: 1px solid #3E52A1;">
		<iframe id="content-frame" name="content-frame" src="<%=request.getContextPath()%>/contract/findContracts.action" width="100%" height="100%" ></iframe>
	</div>
	<script type="text/javascript">
		var triggerChange = function () {
			ch.viewport.getOffset();
			$(".ch-content").height(ch.viewport.height-60);
		},
		cpassword = $(".cpassword").layer("修改密码"),
		clogout = $(".clogout").layer("退出系统");
		ch.utils.window.bind("resize", triggerChange);
		triggerChange();
	</script>
</body>
</html>